package com.example.child_protection.exception;

public abstract class BaseException extends Exception {

    /**
     * @Fields serialVersionUID : TODO
     */
    private static final long serialVersionUID = 1L;
    protected String errorcode;
    protected String message;
    protected Throwable e;

    public BaseException( Throwable e ) {
        super( e );
        this.e = e;
    }

    public BaseException( String message ) {
        super( message );
        this.message = message;
    }

    public BaseException( String message, Throwable e ) {
        super( message, e );
        this.message = message;
        this.e = e;
    }

    public abstract void setErrorcode();

    public String getMessage() {
        return message;
    }

    public Throwable getE() {
        return e;
    }

    public String getErrorcode() {
        return errorcode;
    }
}
